const ProjectModel = require('../model/projectModel');
const attractionService = {
    attractionfind: ()=>{
        return ProjectModel.AttractionModel.find()
        .then(data=>{
            // console.log(data)
            return data
        })
    },

    attractionupdata: (body,query)=>{
        return ProjectModel.AttractionModel.updateOne({pinying:query.pinying},{$set:{comments:body}})
        .then(data=>{
            console.log(data)
        })
    },
}

module.exports = attractionService